#!/bin/bash


if [ `whoami` != "root" ]; then
    echo "需要以root用户执行"
    exit -1;
fi


tar -xvf libgpiod-2.2.1.tar.gz
pushd libgpiod-2.2.1
./autogen.sh --enable-tools=yes
make
make install
popd
rm -r libgpiod-2.2.1

